package com.system.service.impl;

import com.system.dao.ISysUserDao;
import com.system.entity.SysPermission;
import com.system.entity.SysRole;
import com.system.entity.SysUser;
import com.system.service.ISysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class SysUserServiceImpl implements ISysUserService {

    @Resource
    private ISysUserDao sysUserDao;


    @Override
    public SysUser login(String username, String password) {
        return sysUserDao.login(username,password);
    }

    @Override
    public List<SysRole> getAllRolesByUsername(String username) {
        return null;
    }

    @Override
    public List<SysPermission> getAllPermissionsByUsernae(String username) {
        return null;
    }
}
